package com.ruoyi.project.service.impl;

import java.util.List;
import com.ruoyi.common.core.utils.DateUtils;
import com.ruoyi.project.domain.HeEventDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.HeEventReportMapper;
import com.ruoyi.project.domain.HeEventReport;
import com.ruoyi.project.service.IHeEventReportService;

/**
 * 事件上报信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-02
 */
@Service
public class HeEventReportServiceImpl implements IHeEventReportService 
{
    @Autowired
    private HeEventReportMapper heEventReportMapper;

    /**
     * 查询事件上报信息
     * 
     * @param id 事件上报信息主键
     * @return 事件上报信息
     */
    @Override
    public HeEventReport selectHeEventReportById(Long id)
    {
        return heEventReportMapper.selectHeEventReportById(id);
    }

    /**
     * 查询事件上报信息列表
     * 
     * @param heEventReport 事件上报信息
     * @return 事件上报信息
     */
    @Override
    public List<HeEventReport> selectHeEventReportList(HeEventReport heEventReport)
    {
        return heEventReportMapper.selectHeEventReportList(heEventReport);
    }
    @Override
    public List<HeEventReport> selectHeEventReportListByTime(HeEventReport heEventReport)
    {
        return heEventReportMapper.selectHeEventReportListByTime(heEventReport);
    }

    public List<HeEventReport> selectHeEventReportListBySupportDepartment(HeEventReport heEventReport)
    {
        return heEventReportMapper.selectHeEventReportListBySupportDepartment(heEventReport);
    }
    public List<HeEventReport> selectHeEventReportListByMonth(HeEventReport heEventReport)
    {
        return heEventReportMapper.selectHeEventReportListByMonth(heEventReport);
    }
    public List<String> getDistinctReportFiller(HeEventReport heEventReport){
        return  heEventReportMapper.getDistinctReportFiller(heEventReport);
    }
    public List<Long> getDistinctReportDepartment(HeEventReport heEventReport){
        return  heEventReportMapper.getDistinctReportDepartment(heEventReport);

    }
    public List<HeEventDto> selectHeEventDtoList(HeEventDto heEventDto){
        return  heEventReportMapper.selectHeEventDtoList(heEventDto);

    }
    public List<HeEventDto> selectAuditHeEventDtoList(HeEventDto heEventDto){
        return  heEventReportMapper.selectAuditHeEventDtoList(heEventDto);

    }
    public List<HeEventDto> selectDisposeHeEventDtoList(HeEventDto heEventDto){
        return  heEventReportMapper.selectDisposeHeEventDtoList(heEventDto);

    }
    public List<HeEventDto> selectStatisticsHeEventDtoList(HeEventDto heEventDto){
        return  heEventReportMapper.selectStatisticsHeEventDtoList(heEventDto);

    }

    /**
     * 新增事件上报信息
     * 
     * @param heEventReport 事件上报信息
     * @return 结果
     */
    @Override
    public int insertHeEventReport(HeEventReport heEventReport)
    {
        return heEventReportMapper.insertHeEventReport(heEventReport);
    }

    /**
     * 修改事件上报信息
     * 
     * @param heEventReport 事件上报信息
     * @return 结果
     */
    @Override
    public int updateHeEventReport(HeEventReport heEventReport)
    {
        heEventReport.setUpdateTime(DateUtils.getNowDate());
        return heEventReportMapper.updateHeEventReport(heEventReport);
    }

    /**
     * 批量删除事件上报信息
     * 
     * @param ids 需要删除的事件上报信息主键
     * @return 结果
     */
    @Override
    public int deleteHeEventReportByIds(Long[] ids)
    {
        return heEventReportMapper.deleteHeEventReportByIds(ids);
    }

    /**
     * 删除事件上报信息信息
     * 
     * @param id 事件上报信息主键
     * @return 结果
     */
    @Override
    public int deleteHeEventReportById(Long id)
    {
        return heEventReportMapper.deleteHeEventReportById(id);
    }
}
